import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import { createPinia } from 'pinia'

import './style/index.less'
import snowy from './snowy'
import i18n from './locales'
import router from './router'
import App from './App.vue'
import './tailwind.css'
import flow from 'simple-flow-design'
import 'simple-flow-design/simple-flow-design.css'
import store from './store/flowStore'
import FormMakingV3 from '@/components/FormMaking/dist/form-making-v3.es.js'
import './components/FormMaking/dist/index.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import zh from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(Antd)
app.use(i18n)
app.use(snowy)
app.use(store)
app.use(flow)
app.use(ElementPlus, { locale: zh })
app.use(FormMakingV3, { lang: 'zh-CN', i18n })

// 挂载app
app.mount('#app')
